package aiingames.simulation.network;

import java.util.ArrayList;
import java.util.List;

import com.vividsolutions.jts.geom.Coordinate;

public class Node {

	private List<Link> inbound = new ArrayList<Link>();
	private List<Link> outbound = new ArrayList<Link>();
	private Coordinate coordinate;
	
	Node(Coordinate coord) {
		this.coordinate = coord;
	}
	
	void addInLink(Link link) {
		this.inbound.add(link);
	}

	void addOutLink(Link link) {
		this.outbound.add(link);
	}
	
	public List<Link> getInLinks() {
		return this.inbound;
	}
	
	public List<Link> getOutLinks() {
		return this.outbound;
	}
	
	public Coordinate getCoordinate() {
		return this.coordinate;
	}
}
